
set(EXTERNAL_LIBS_PATH "${EXTERNAL_LIBS_PATH};${LINK_LIBS_PATH}/ours" CACHE STRING INTERNAL FORCE)
# 获取当前目录下的所有子目录
file(GLOB CHILD_DIRS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *)

# 遍历每个子目录
foreach(dir ${CHILD_DIRS})
    # 检查是否为目录
    if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${dir})
        # 检查子目录中是否存在 CMakeLists.txt 文件
        if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/CMakeLists.txt)
            # 添加子目录
            add_subdirectory(${dir})
        endif()
    endif()
endforeach()